package org.springcloud.wisdom.springcloud_03_freshman.admin.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springcloud.wisdom.springcloud_03_freshman.student.entity.Dept;

@Mapper
public interface AdminDeptDao {
    @Insert("insert into department(deptno,deptname) values(#{deptno},#{deptname})")
    public int addDept(Dept dept);
    @Update("update department set deptname=#{deptname} where deptid=#{deptid}")
    public int updateDept(Dept dept);
    @Delete("delete from department where deptid=#{deptid}")
    public int deleteDept(Integer deptid);
}
